package com.polylink;

/**
 *@author xiliang.xiao
 *@date 2015年3月26日 上午9:53:44
 *
 **/
public class Attr {

	private String name;
	private String dbName;
	private String type;
	private String upName;
	private String cName;
	
	public Attr(String name, String dbName, String type, String cName) {
		super();
		this.name = name;
		this.dbName = dbName;
		this.type = type;
		this.cName = cName;
		this.upName = name.replaceFirst(name.substring(0, 1), name.substring(0, 1).toUpperCase());
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
		setUpName(name.replaceFirst(name.substring(0, 1), name.substring(0, 1).toUpperCase()));
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUpName() {
		return upName;
	}
	public void setUpName(String upName) {
		this.upName = upName;
	}
	public String getcName() {
		return cName;
	}
	public void setcName(String cName) {
		this.cName = cName;
	}
	
	
}
